import 'package:arco_flutter/arco_flutter.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/typography2_controller.dart';

///文本
class Typography2View extends GetView<Typography2Controller> {
    const Typography2View({super.key});
    @override
    Widget build(BuildContext context) {
        return const Scaffold(
            body:  Center(
                child: Wrap(
                    spacing: 10,
                    direction: Axis.vertical,
                    children: [
                        ATypography(text: 'Arco Design'),
                        ATypography(text: 'Arco Design',type: ATypographyType.secondary),
                        ATypography(text: 'Arco Design',type: ATypographyType.primary),
                        ATypography(text: 'Arco Design',type: ATypographyType.success),
                        ATypography(text: 'Arco Design',type: ATypographyType.warning),
                        ATypography(text: 'Arco Design',type: ATypographyType.danger),
                        ATypography(text: 'Arco Design',bold: true),
                        ATypography(text: 'Arco Design',mark: Colors.amber),
                        ATypography(text: 'Arco Design',underline: true),
                        ATypography(text: 'Arco Design',delete: true),
                        ATypography(text: 'Arco Design',code: true),
                    ],
                )
            ),
        );
    }
}
